//
//  TitleButton.swift
//  微博
//
//  Created by expai on 16/4/29.
//  Copyright © 2016年 guangJun.com.cn. All rights reserved.
//

import UIKit

class TitleButton: UIButton{
    
    override func layoutSubviews() {
        super.layoutSubviews()
        
//        titleLabel?.frame.offsetInPlace(dx: -(imageView?.bounds.width)!, dy: 0)
//        imageView!.frame.offsetInPlace(dx: (titleLabel?.bounds.width)!, dy: 0)
        
        titleLabel?.frame.origin.x = 0
        imageView?.frame.origin.x = titleLabel!.frame.size.width + 10
    }
}
